﻿using System;
using System.ComponentModel;
using System.Runtime.InteropServices;

namespace Teigha.Core
{
	public class OdGiRapidRTRenderSettingsTraitsData : OdGiRenderSettingsTraitsData
	{
		[EditorBrowsable(EditorBrowsableState.Never)]
		public OdGiRapidRTRenderSettingsTraitsData(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGiRapidRTRenderSettingsTraitsData_SWIGUpcast(cPtr), cMemoryOwn)
		{
			this.swigCPtr = new HandleRef(this, cPtr);
		}

		[EditorBrowsable(EditorBrowsableState.Never)]
		public static HandleRef getCPtr(OdGiRapidRTRenderSettingsTraitsData obj)
		{
			if (obj != null)
			{
				return obj.swigCPtr;
			}
			return new HandleRef(null, IntPtr.Zero);
		}

		~OdGiRapidRTRenderSettingsTraitsData()
		{
			this.Dispose();
		}

		public override void Dispose()
		{
			if (this.swigCPtr.Handle != IntPtr.Zero)
			{
				if (this.swigCMemOwn)
				{
					lock (this.locker)
					{
						if (this.swigCPtr.Handle != IntPtr.Zero && this.swigCMemOwn)
						{
							this.swigCMemOwn = false;
							GlobalsPINVOKE.delete_OdGiRapidRTRenderSettingsTraitsData(this.swigCPtr);
						}
					}
					this.swigCMemOwn = false;
				}
				this.swigCPtr = new HandleRef(null, IntPtr.Zero);
			}
			GC.SuppressFinalize(this);
			base.Dispose();
		}

		public OdGiRapidRTRenderSettingsTraitsData() : this(GlobalsPINVOKE.new_OdGiRapidRTRenderSettingsTraitsData(), true)
		{
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void setQuitCondition(OdGiQuitCondition condition)
		{
			GlobalsPINVOKE.OdGiRapidRTRenderSettingsTraitsData_setQuitCondition(this.swigCPtr, (int)condition);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdGiQuitCondition quitCondition()
		{
			OdGiQuitCondition result = (OdGiQuitCondition)GlobalsPINVOKE.OdGiRapidRTRenderSettingsTraitsData_quitCondition(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setDesiredRenderLevel(int level)
		{
			GlobalsPINVOKE.OdGiRapidRTRenderSettingsTraitsData_setDesiredRenderLevel(this.swigCPtr, level);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public int desiredRenderLevel()
		{
			int result = GlobalsPINVOKE.OdGiRapidRTRenderSettingsTraitsData_desiredRenderLevel(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setDesiredRenderTime(int time)
		{
			GlobalsPINVOKE.OdGiRapidRTRenderSettingsTraitsData_setDesiredRenderTime(this.swigCPtr, time);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public int desiredRenderTime()
		{
			int result = GlobalsPINVOKE.OdGiRapidRTRenderSettingsTraitsData_desiredRenderTime(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setLightingMode(OdGiLightingMode mode)
		{
			GlobalsPINVOKE.OdGiRapidRTRenderSettingsTraitsData_setLightingMode(this.swigCPtr, (int)mode);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdGiLightingMode lightingMode()
		{
			OdGiLightingMode result = (OdGiLightingMode)GlobalsPINVOKE.OdGiRapidRTRenderSettingsTraitsData_lightingMode(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setFilterType(OdGiFilterType type)
		{
			GlobalsPINVOKE.OdGiRapidRTRenderSettingsTraitsData_setFilterType(this.swigCPtr, (int)type);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdGiFilterType filterType()
		{
			OdGiFilterType result = (OdGiFilterType)GlobalsPINVOKE.OdGiRapidRTRenderSettingsTraitsData_filterType(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setFilterWidth(float width)
		{
			GlobalsPINVOKE.OdGiRapidRTRenderSettingsTraitsData_setFilterWidth(this.swigCPtr, width);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public float filterWidth()
		{
			float result = GlobalsPINVOKE.OdGiRapidRTRenderSettingsTraitsData_filterWidth(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setFilterHeight(float height)
		{
			GlobalsPINVOKE.OdGiRapidRTRenderSettingsTraitsData_setFilterHeight(this.swigCPtr, height);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public float filterHeight()
		{
			float result = GlobalsPINVOKE.OdGiRapidRTRenderSettingsTraitsData_filterHeight(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool IsNotEqual(OdGiRapidRTRenderSettingsTraitsData data2)
		{
			bool result = GlobalsPINVOKE.OdGiRapidRTRenderSettingsTraitsData_IsNotEqual(this.swigCPtr, OdGiRapidRTRenderSettingsTraitsData.getCPtr(data2));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool IsEqual(OdGiRapidRTRenderSettingsTraitsData data2)
		{
			bool result = GlobalsPINVOKE.OdGiRapidRTRenderSettingsTraitsData_IsEqual(this.swigCPtr, OdGiRapidRTRenderSettingsTraitsData.getCPtr(data2));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		private object locker = new object();

		private HandleRef swigCPtr;
	}
}
